package DP.prototype;

/**
 * @author msi
 * 原型模式通用代码
 */
public class PrototypeClass implements Cloneable{
    @Override
    public PrototypeClass clone(){
       PrototypeClass prototypeClass=null;
        try {
            prototypeClass = (PrototypeClass) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return prototypeClass;
    }
}
